home *** CD-ROM | disk | FTP | other *** search
open in:
MacOS 8.1
|
Win98
|
DOS
browse contents |
view JSON data
|
view as text
This file was processed as: LaTeX Document
(document/latex).
Confidence | Program | Detection | Match Type | Support
|
---|
100%
| dexvert
| LaTeX Document (document/latex)
| magic
| Supported |
1%
| dexvert
| Text File (text/txt)
| fallback
| Supported |
100%
| file
| LaTeX document text
| default
| |
99%
| file
| LaTeX document, ASCII text, with CR line terminators
| default
| |
100%
| checkBytes
| Printable ASCII
| default
| |
100%
| perlTextCheck
| Likely Text (Perl)
| default
| |
100%
| siegfried
| fmt/281 LaTeX (Subdocument)
| default
| |
100%
| detectItEasy
| Format: plain text[CR]
| default (weak)
|
|
id metadata |
---|
key | value |
---|
macFileType | [TEXT] |
macFileCreator | [R*ch] |
hex view+--------+-------------------------+-------------------------+--------+--------+
|00000000| 5c 63 68 61 70 74 65 72 | 7b 54 6f 70 2d 6c 65 76 |\chapter|{Top-lev|
|00000010| 65 6c 20 63 6f 6d 70 6f | 6e 65 6e 74 73 7d 0d 0d |el compo|nents}..|
|00000020| 54 68 65 20 50 79 74 68 | 6f 6e 20 69 6e 74 65 72 |The Pyth|on inter|
|00000030| 70 72 65 74 65 72 20 63 | 61 6e 20 67 65 74 20 69 |preter c|an get i|
|00000040| 74 73 20 69 6e 70 75 74 | 20 66 72 6f 6d 20 61 20 |ts input| from a |
|00000050| 6e 75 6d 62 65 72 20 6f | 66 20 73 6f 75 72 63 65 |number o|f source|
|00000060| 73 3a 0d 66 72 6f 6d 20 | 61 20 73 63 72 69 70 74 |s:.from |a script|
|00000070| 20 70 61 73 73 65 64 20 | 74 6f 20 69 74 20 61 73 | passed |to it as|
|00000080| 20 73 74 61 6e 64 61 72 | 64 20 69 6e 70 75 74 20 | standar|d input |
|00000090| 6f 72 20 61 73 20 70 72 | 6f 67 72 61 6d 20 61 72 |or as pr|ogram ar|
|000000a0| 67 75 6d 65 6e 74 2c 0d | 74 79 70 65 64 20 69 6e |gument,.|typed in|
|000000b0| 20 69 6e 74 65 72 61 63 | 74 69 76 65 6c 79 2c 20 | interac|tively, |
|000000c0| 66 72 6f 6d 20 61 20 6d | 6f 64 75 6c 65 20 73 6f |from a m|odule so|
|000000d0| 75 72 63 65 20 66 69 6c | 65 2c 20 65 74 63 2e 20 |urce fil|e, etc. |
|000000e0| 20 54 68 69 73 20 63 68 | 61 70 74 65 72 0d 67 69 | This ch|apter.gi|
|000000f0| 76 65 73 20 74 68 65 20 | 73 79 6e 74 61 78 20 75 |ves the |syntax u|
|00000100| 73 65 64 20 69 6e 20 74 | 68 65 73 65 20 63 61 73 |sed in t|hese cas|
|00000110| 65 73 2e 0d 5c 69 6e 64 | 65 78 7b 69 6e 74 65 72 |es..\ind|ex{inter|
|00000120| 70 72 65 74 65 72 7d 0d | 0d 5c 73 65 63 74 69 6f |preter}.|.\sectio|
|00000130| 6e 7b 43 6f 6d 70 6c 65 | 74 65 20 50 79 74 68 6f |n{Comple|te Pytho|
|00000140| 6e 20 70 72 6f 67 72 61 | 6d 73 7d 0d 5c 69 6e 64 |n progra|ms}.\ind|
|00000150| 65 78 7b 70 72 6f 67 72 | 61 6d 7d 0d 0d 57 68 69 |ex{progr|am}..Whi|
|00000160| 6c 65 20 61 20 6c 61 6e | 67 75 61 67 65 20 73 70 |le a lan|guage sp|
|00000170| 65 63 69 66 69 63 61 74 | 69 6f 6e 20 6e 65 65 64 |ecificat|ion need|
|00000180| 20 6e 6f 74 20 70 72 65 | 73 63 72 69 62 65 20 68 | not pre|scribe h|
|00000190| 6f 77 20 74 68 65 20 6c | 61 6e 67 75 61 67 65 0d |ow the l|anguage.|
|000001a0| 69 6e 74 65 72 70 72 65 | 74 65 72 20 69 73 20 69 |interpre|ter is i|
|000001b0| 6e 76 6f 6b 65 64 2c 20 | 69 74 20 69 73 20 75 73 |nvoked, |it is us|
|000001c0| 65 66 75 6c 20 74 6f 20 | 68 61 76 65 20 61 20 6e |eful to |have a n|
|000001d0| 6f 74 69 6f 6e 20 6f 66 | 20 61 20 63 6f 6d 70 6c |otion of| a compl|
|000001e0| 65 74 65 0d 50 79 74 68 | 6f 6e 20 70 72 6f 67 72 |ete.Pyth|on progr|
|000001f0| 61 6d 2e 20 20 41 20 63 | 6f 6d 70 6c 65 74 65 20 |am. A c|omplete |
|00000200| 50 79 74 68 6f 6e 20 70 | 72 6f 67 72 61 6d 20 69 |Python p|rogram i|
|00000210| 73 20 65 78 65 63 75 74 | 65 64 20 69 6e 20 61 20 |s execut|ed in a |
|00000220| 6d 69 6e 69 6d 61 6c 6c | 79 0d 69 6e 69 74 69 61 |minimall|y.initia|
|00000230| 6c 69 7a 65 64 20 65 6e | 76 69 72 6f 6e 6d 65 6e |lized en|vironmen|
|00000240| 74 3a 20 61 6c 6c 20 62 | 75 69 6c 74 2d 69 6e 20 |t: all b|uilt-in |
|00000250| 61 6e 64 20 73 74 61 6e | 64 61 72 64 20 6d 6f 64 |and stan|dard mod|
|00000260| 75 6c 65 73 20 61 72 65 | 0d 61 76 61 69 6c 61 62 |ules are|.availab|
|00000270| 6c 65 2c 20 62 75 74 20 | 6e 6f 6e 65 20 68 61 76 |le, but |none hav|
|00000280| 65 20 62 65 65 6e 20 69 | 6e 69 74 69 61 6c 69 7a |e been i|nitializ|
|00000290| 65 64 2c 20 65 78 63 65 | 70 74 20 66 6f 72 20 5c |ed, exce|pt for \|
|000002a0| 76 65 72 62 40 73 79 73 | 40 0d 28 76 61 72 69 6f |verb@sys|@.(vario|
|000002b0| 75 73 20 73 79 73 74 65 | 6d 20 73 65 72 76 69 63 |us syste|m servic|
|000002c0| 65 73 29 2c 20 5c 76 65 | 72 62 40 5f 5f 62 75 69 |es), \ve|rb@__bui|
|000002d0| 6c 74 69 6e 5f 5f 40 20 | 28 62 75 69 6c 74 2d 69 |ltin__@ |(built-i|
|000002e0| 6e 20 66 75 6e 63 74 69 | 6f 6e 73 2c 0d 65 78 63 |n functi|ons,.exc|
|000002f0| 65 70 74 69 6f 6e 73 20 | 61 6e 64 20 5c 76 65 72 |eptions |and \ver|
|00000300| 62 40 4e 6f 6e 65 40 29 | 20 61 6e 64 20 5c 76 65 |b@None@)| and \ve|
|00000310| 72 62 40 5f 5f 6d 61 69 | 6e 5f 5f 40 2e 20 20 54 |rb@__mai|n__@. T|
|00000320| 68 65 20 6c 61 74 74 65 | 72 20 69 73 20 75 73 65 |he latte|r is use|
|00000330| 64 0d 74 6f 20 70 72 6f | 76 69 64 65 20 74 68 65 |d.to pro|vide the|
|00000340| 20 6c 6f 63 61 6c 20 61 | 6e 64 20 67 6c 6f 62 61 | local a|nd globa|
|00000350| 6c 20 6e 61 6d 65 20 73 | 70 61 63 65 20 66 6f 72 |l name s|pace for|
|00000360| 20 65 78 65 63 75 74 69 | 6f 6e 20 6f 66 20 74 68 | executi|on of th|
|00000370| 65 0d 63 6f 6d 70 6c 65 | 74 65 20 70 72 6f 67 72 |e.comple|te progr|
|00000380| 61 6d 2e 0d 5c 62 69 6d | 6f 64 69 6e 64 65 78 7b |am..\bim|odindex{|
|00000390| 73 79 73 7d 0d 5c 62 69 | 6d 6f 64 69 6e 64 65 78 |sys}.\bi|modindex|
|000003a0| 7b 5f 5f 6d 61 69 6e 5f | 5f 7d 0d 5c 62 69 6d 6f |{__main_|_}.\bimo|
|000003b0| 64 69 6e 64 65 78 7b 5f | 5f 62 75 69 6c 74 69 6e |dindex{_|_builtin|
|000003c0| 5f 5f 7d 0d 0d 54 68 65 | 20 73 79 6e 74 61 78 20 |__}..The| syntax |
|000003d0| 66 6f 72 20 61 20 63 6f | 6d 70 6c 65 74 65 20 50 |for a co|mplete P|
|000003e0| 79 74 68 6f 6e 20 70 72 | 6f 67 72 61 6d 20 69 73 |ython pr|ogram is|
|000003f0| 20 74 68 61 74 20 66 6f | 72 20 66 69 6c 65 20 69 | that fo|r file i|
|00000400| 6e 70 75 74 2c 0d 64 65 | 73 63 72 69 62 65 64 20 |nput,.de|scribed |
|00000410| 69 6e 20 74 68 65 20 6e | 65 78 74 20 73 65 63 74 |in the n|ext sect|
|00000420| 69 6f 6e 2e 0d 0d 54 68 | 65 20 69 6e 74 65 72 70 |ion...Th|e interp|
|00000430| 72 65 74 65 72 20 6d 61 | 79 20 61 6c 73 6f 20 62 |reter ma|y also b|
|00000440| 65 20 69 6e 76 6f 6b 65 | 64 20 69 6e 20 69 6e 74 |e invoke|d in int|
|00000450| 65 72 61 63 74 69 76 65 | 20 6d 6f 64 65 3b 20 69 |eractive| mode; i|
|00000460| 6e 20 74 68 69 73 20 63 | 61 73 65 2c 0d 69 74 20 |n this c|ase,.it |
|00000470| 64 6f 65 73 20 6e 6f 74 | 20 72 65 61 64 20 61 6e |does not| read an|
|00000480| 64 20 65 78 65 63 75 74 | 65 20 61 20 63 6f 6d 70 |d execut|e a comp|
|00000490| 6c 65 74 65 20 70 72 6f | 67 72 61 6d 20 62 75 74 |lete pro|gram but|
|000004a0| 20 72 65 61 64 73 20 61 | 6e 64 20 65 78 65 63 75 | reads a|nd execu|
|000004b0| 74 65 73 0d 6f 6e 65 20 | 73 74 61 74 65 6d 65 6e |tes.one |statemen|
|000004c0| 74 20 28 70 6f 73 73 69 | 62 6c 79 20 63 6f 6d 70 |t (possi|bly comp|
|000004d0| 6f 75 6e 64 29 20 61 74 | 20 61 20 74 69 6d 65 2e |ound) at| a time.|
|000004e0| 20 20 54 68 65 20 69 6e | 69 74 69 61 6c 20 65 6e | The in|itial en|
|000004f0| 76 69 72 6f 6e 6d 65 6e | 74 0d 69 73 20 69 64 65 |vironmen|t.is ide|
|00000500| 6e 74 69 63 61 6c 20 74 | 6f 20 74 68 61 74 20 6f |ntical t|o that o|
|00000510| 66 20 61 20 63 6f 6d 70 | 6c 65 74 65 20 70 72 6f |f a comp|lete pro|
|00000520| 67 72 61 6d 3b 20 65 61 | 63 68 20 73 74 61 74 65 |gram; ea|ch state|
|00000530| 6d 65 6e 74 20 69 73 20 | 65 78 65 63 75 74 65 64 |ment is |executed|
|00000540| 0d 69 6e 20 74 68 65 20 | 6e 61 6d 65 20 73 70 61 |.in the |name spa|
|00000550| 63 65 20 6f 66 20 5c 76 | 65 72 62 40 5f 5f 6d 61 |ce of \v|erb@__ma|
|00000560| 69 6e 5f 5f 40 2e 0d 5c | 69 6e 64 65 78 7b 69 6e |in__@..\|index{in|
|00000570| 74 65 72 61 63 74 69 76 | 65 20 6d 6f 64 65 7d 0d |teractiv|e mode}.|
|00000580| 5c 62 69 6d 6f 64 69 6e | 64 65 78 7b 5f 5f 6d 61 |\bimodin|dex{__ma|
|00000590| 69 6e 5f 5f 7d 0d 0d 55 | 6e 64 65 72 20 7b 5c 55 |in__}..U|nder {\U|
|000005a0| 4e 49 58 7d 2c 20 61 20 | 63 6f 6d 70 6c 65 74 65 |NIX}, a |complete|
|000005b0| 20 70 72 6f 67 72 61 6d | 20 63 61 6e 20 62 65 20 | program| can be |
|000005c0| 70 61 73 73 65 64 20 74 | 6f 20 74 68 65 20 69 6e |passed t|o the in|
|000005d0| 74 65 72 70 72 65 74 65 | 72 20 69 6e 0d 74 68 72 |terprete|r in.thr|
|000005e0| 65 65 20 66 6f 72 6d 73 | 3a 20 77 69 74 68 20 74 |ee forms|: with t|
|000005f0| 68 65 20 7b 5c 62 66 20 | 2d 63 7d 20 7b 5c 69 74 |he {\bf |-c} {\it|
|00000600| 20 73 74 72 69 6e 67 7d | 20 63 6f 6d 6d 61 6e 64 | string}| command|
|00000610| 20 6c 69 6e 65 20 6f 70 | 74 69 6f 6e 2c 20 61 73 | line op|tion, as|
|00000620| 20 61 0d 66 69 6c 65 20 | 70 61 73 73 65 64 20 61 | a.file |passed a|
|00000630| 73 20 74 68 65 20 66 69 | 72 73 74 20 63 6f 6d 6d |s the fi|rst comm|
|00000640| 61 6e 64 20 6c 69 6e 65 | 20 61 72 67 75 6d 65 6e |and line| argumen|
|00000650| 74 2c 20 6f 72 20 61 73 | 20 73 74 61 6e 64 61 72 |t, or as| standar|
|00000660| 64 20 69 6e 70 75 74 2e | 0d 49 66 20 74 68 65 20 |d input.|.If the |
|00000670| 66 69 6c 65 20 6f 72 20 | 73 74 61 6e 64 61 72 64 |file or |standard|
|00000680| 20 69 6e 70 75 74 20 69 | 73 20 61 20 74 74 79 20 | input i|s a tty |
|00000690| 64 65 76 69 63 65 2c 20 | 74 68 65 20 69 6e 74 65 |device, |the inte|
|000006a0| 72 70 72 65 74 65 72 20 | 65 6e 74 65 72 73 0d 69 |rpreter |enters.i|
|000006b0| 6e 74 65 72 61 63 74 69 | 76 65 20 6d 6f 64 65 3b |nteracti|ve mode;|
|000006c0| 20 6f 74 68 65 72 77 69 | 73 65 2c 20 69 74 20 65 | otherwi|se, it e|
|000006d0| 78 65 63 75 74 65 73 20 | 74 68 65 20 66 69 6c 65 |xecutes |the file|
|000006e0| 20 61 73 20 61 20 63 6f | 6d 70 6c 65 74 65 0d 70 | as a co|mplete.p|
|000006f0| 72 6f 67 72 61 6d 2e 0d | 5c 69 6e 64 65 78 7b 55 |rogram..|\index{U|
|00000700| 4e 49 58 7d 0d 5c 69 6e | 64 65 78 7b 63 6f 6d 6d |NIX}.\in|dex{comm|
|00000710| 61 6e 64 20 6c 69 6e 65 | 7d 0d 5c 69 6e 64 65 78 |and line|}.\index|
|00000720| 7b 73 74 61 6e 64 61 72 | 64 20 69 6e 70 75 74 7d |{standar|d input}|
|00000730| 0d 0d 5c 73 65 63 74 69 | 6f 6e 7b 46 69 6c 65 20 |..\secti|on{File |
|00000740| 69 6e 70 75 74 7d 0d 0d | 41 6c 6c 20 69 6e 70 75 |input}..|All inpu|
|00000750| 74 20 72 65 61 64 20 66 | 72 6f 6d 20 6e 6f 6e 2d |t read f|rom non-|
|00000760| 69 6e 74 65 72 61 63 74 | 69 76 65 20 66 69 6c 65 |interact|ive file|
|00000770| 73 20 68 61 73 20 74 68 | 65 20 73 61 6d 65 20 66 |s has th|e same f|
|00000780| 6f 72 6d 3a 0d 0d 5c 62 | 65 67 69 6e 7b 76 65 72 |orm:..\b|egin{ver|
|00000790| 62 61 74 69 6d 7d 0d 66 | 69 6c 65 5f 69 6e 70 75 |batim}.f|ile_inpu|
|000007a0| 74 3a 20 20 20 20 20 28 | 4e 45 57 4c 49 4e 45 20 |t: (|NEWLINE |
|000007b0| 7c 20 73 74 61 74 65 6d | 65 6e 74 29 2a 0d 5c 65 || statem|ent)*.\e|
|000007c0| 6e 64 7b 76 65 72 62 61 | 74 69 6d 7d 0d 0d 54 68 |nd{verba|tim}..Th|
|000007d0| 69 73 20 73 79 6e 74 61 | 78 20 69 73 20 75 73 65 |is synta|x is use|
|000007e0| 64 20 69 6e 20 74 68 65 | 20 66 6f 6c 6c 6f 77 69 |d in the| followi|
|000007f0| 6e 67 20 73 69 74 75 61 | 74 69 6f 6e 73 3a 0d 0d |ng situa|tions:..|
|00000800| 5c 62 65 67 69 6e 7b 69 | 74 65 6d 69 7a 65 7d 0d |\begin{i|temize}.|
|00000810| 0d 5c 69 74 65 6d 20 77 | 68 65 6e 20 70 61 72 73 |.\item w|hen pars|
|00000820| 69 6e 67 20 61 20 63 6f | 6d 70 6c 65 74 65 20 50 |ing a co|mplete P|
|00000830| 79 74 68 6f 6e 20 70 72 | 6f 67 72 61 6d 20 28 66 |ython pr|ogram (f|
|00000840| 72 6f 6d 20 61 20 66 69 | 6c 65 20 6f 72 20 66 72 |rom a fi|le or fr|
|00000850| 6f 6d 20 61 20 73 74 72 | 69 6e 67 29 3b 0d 0d 5c |om a str|ing);..\|
|00000860| 69 74 65 6d 20 77 68 65 | 6e 20 70 61 72 73 69 6e |item whe|n parsin|
|00000870| 67 20 61 20 6d 6f 64 75 | 6c 65 3b 0d 0d 5c 69 74 |g a modu|le;..\it|
|00000880| 65 6d 20 77 68 65 6e 20 | 70 61 72 73 69 6e 67 20 |em when |parsing |
|00000890| 61 20 73 74 72 69 6e 67 | 20 70 61 73 73 65 64 20 |a string| passed |
|000008a0| 74 6f 20 74 68 65 20 5c | 76 65 72 62 40 65 78 65 |to the \|verb@exe|
|000008b0| 63 40 20 73 74 61 74 65 | 6d 65 6e 74 3b 0d 0d 5c |c@ state|ment;..\|
|000008c0| 65 6e 64 7b 69 74 65 6d | 69 7a 65 7d 0d 0d 5c 73 |end{item|ize}..\s|
|000008d0| 65 63 74 69 6f 6e 7b 49 | 6e 74 65 72 61 63 74 69 |ection{I|nteracti|
|000008e0| 76 65 20 69 6e 70 75 74 | 7d 0d 0d 49 6e 70 75 74 |ve input|}..Input|
|000008f0| 20 69 6e 20 69 6e 74 65 | 72 61 63 74 69 76 65 20 | in inte|ractive |
|00000900| 6d 6f 64 65 20 69 73 20 | 70 61 72 73 65 64 20 75 |mode is |parsed u|
|00000910| 73 69 6e 67 20 74 68 65 | 20 66 6f 6c 6c 6f 77 69 |sing the| followi|
|00000920| 6e 67 20 67 72 61 6d 6d | 61 72 3a 0d 0d 5c 62 65 |ng gramm|ar:..\be|
|00000930| 67 69 6e 7b 76 65 72 62 | 61 74 69 6d 7d 0d 69 6e |gin{verb|atim}.in|
|00000940| 74 65 72 61 63 74 69 76 | 65 5f 69 6e 70 75 74 3a |teractiv|e_input:|
|00000950| 20 5b 73 74 6d 74 5f 6c | 69 73 74 5d 20 4e 45 57 | [stmt_l|ist] NEW|
|00000960| 4c 49 4e 45 20 7c 20 63 | 6f 6d 70 6f 75 6e 64 5f |LINE | c|ompound_|
|00000970| 73 74 6d 74 20 4e 45 57 | 4c 49 4e 45 0d 5c 65 6e |stmt NEW|LINE.\en|
|00000980| 64 7b 76 65 72 62 61 74 | 69 6d 7d 0d 0d 4e 6f 74 |d{verbat|im}..Not|
|00000990| 65 20 74 68 61 74 20 61 | 20 28 74 6f 70 2d 6c 65 |e that a| (top-le|
|000009a0| 76 65 6c 29 20 63 6f 6d | 70 6f 75 6e 64 20 73 74 |vel) com|pound st|
|000009b0| 61 74 65 6d 65 6e 74 20 | 6d 75 73 74 20 62 65 20 |atement |must be |
|000009c0| 66 6f 6c 6c 6f 77 65 64 | 20 62 79 20 61 20 62 6c |followed| by a bl|
|000009d0| 61 6e 6b 0d 6c 69 6e 65 | 20 69 6e 20 69 6e 74 65 |ank.line| in inte|
|000009e0| 72 61 63 74 69 76 65 20 | 6d 6f 64 65 3b 20 74 68 |ractive |mode; th|
|000009f0| 69 73 20 69 73 20 6e 65 | 65 64 65 64 20 74 6f 20 |is is ne|eded to |
|00000a00| 68 65 6c 70 20 74 68 65 | 20 70 61 72 73 65 72 20 |help the| parser |
|00000a10| 64 65 74 65 63 74 20 74 | 68 65 0d 65 6e 64 20 6f |detect t|he.end o|
|00000a20| 66 20 74 68 65 20 69 6e | 70 75 74 2e 0d 0d 5c 73 |f the in|put...\s|
|00000a30| 65 63 74 69 6f 6e 7b 45 | 78 70 72 65 73 73 69 6f |ection{E|xpressio|
|00000a40| 6e 20 69 6e 70 75 74 7d | 0d 5c 69 6e 64 65 78 7b |n input}|.\index{|
|00000a50| 69 6e 70 75 74 7d 0d 0d | 54 68 65 72 65 20 61 72 |input}..|There ar|
|00000a60| 65 20 74 77 6f 20 66 6f | 72 6d 73 20 6f 66 20 65 |e two fo|rms of e|
|00000a70| 78 70 72 65 73 73 69 6f | 6e 20 69 6e 70 75 74 2e |xpressio|n input.|
|00000a80| 20 20 42 6f 74 68 20 69 | 67 6e 6f 72 65 20 6c 65 | Both i|gnore le|
|00000a90| 61 64 69 6e 67 0d 77 68 | 69 74 65 73 70 61 63 65 |ading.wh|itespace|
|00000aa0| 2e 0d 20 0d 54 68 65 20 | 73 74 72 69 6e 67 20 61 |.. .The |string a|
|00000ab0| 72 67 75 6d 65 6e 74 20 | 74 6f 20 5c 76 65 72 62 |rgument |to \verb|
|00000ac0| 40 65 76 61 6c 28 29 40 | 20 6d 75 73 74 20 68 61 |@eval()@| must ha|
|00000ad0| 76 65 20 74 68 65 20 66 | 6f 6c 6c 6f 77 69 6e 67 |ve the f|ollowing|
|00000ae0| 20 66 6f 72 6d 3a 0d 5c | 62 69 66 75 6e 63 69 6e | form:.\|bifuncin|
|00000af0| 64 65 78 7b 65 76 61 6c | 7d 0d 0d 5c 62 65 67 69 |dex{eval|}..\begi|
|00000b00| 6e 7b 76 65 72 62 61 74 | 69 6d 7d 0d 65 76 61 6c |n{verbat|im}.eval|
|00000b10| 5f 69 6e 70 75 74 3a 20 | 20 20 20 20 63 6f 6e 64 |_input: | cond|
|00000b20| 69 74 69 6f 6e 5f 6c 69 | 73 74 20 4e 45 57 4c 49 |ition_li|st NEWLI|
|00000b30| 4e 45 2a 0d 5c 65 6e 64 | 7b 76 65 72 62 61 74 69 |NE*.\end|{verbati|
|00000b40| 6d 7d 0d 0d 54 68 65 20 | 69 6e 70 75 74 20 6c 69 |m}..The |input li|
|00000b50| 6e 65 20 72 65 61 64 20 | 62 79 20 5c 76 65 72 62 |ne read |by \verb|
|00000b60| 40 69 6e 70 75 74 28 29 | 40 20 6d 75 73 74 20 68 |@input()|@ must h|
|00000b70| 61 76 65 20 74 68 65 20 | 66 6f 6c 6c 6f 77 69 6e |ave the |followin|
|00000b80| 67 20 66 6f 72 6d 3a 0d | 5c 62 69 66 75 6e 63 69 |g form:.|\bifunci|
|00000b90| 6e 64 65 78 7b 69 6e 70 | 75 74 7d 0d 0d 5c 62 65 |ndex{inp|ut}..\be|
|00000ba0| 67 69 6e 7b 76 65 72 62 | 61 74 69 6d 7d 0d 69 6e |gin{verb|atim}.in|
|00000bb0| 70 75 74 5f 69 6e 70 75 | 74 3a 20 20 20 20 63 6f |put_inpu|t: co|
|00000bc0| 6e 64 69 74 69 6f 6e 5f | 6c 69 73 74 20 4e 45 57 |ndition_|list NEW|
|00000bd0| 4c 49 4e 45 0d 5c 65 6e | 64 7b 76 65 72 62 61 74 |LINE.\en|d{verbat|
|00000be0| 69 6d 7d 0d 0d 4e 6f 74 | 65 3a 20 74 6f 20 72 65 |im}..Not|e: to re|
|00000bf0| 61 64 20 60 72 61 77 27 | 20 69 6e 70 75 74 20 6c |ad `raw'| input l|
|00000c00| 69 6e 65 20 77 69 74 68 | 6f 75 74 20 69 6e 74 65 |ine with|out inte|
|00000c10| 72 70 72 65 74 61 74 69 | 6f 6e 2c 20 79 6f 75 20 |rpretati|on, you |
|00000c20| 63 61 6e 20 75 73 65 20 | 74 68 65 0d 62 75 69 6c |can use |the.buil|
|00000c30| 74 2d 69 6e 20 66 75 6e | 63 74 69 6f 6e 20 5c 76 |t-in fun|ction \v|
|00000c40| 65 72 62 40 72 61 77 5f | 69 6e 70 75 74 28 29 40 |erb@raw_|input()@|
|00000c50| 20 20 6f 72 20 74 68 65 | 20 5c 76 65 72 62 40 72 | or the| \verb@r|
|00000c60| 65 61 64 6c 69 6e 65 28 | 29 40 20 6d 65 74 68 6f |eadline(|)@ metho|
|00000c70| 64 0d 6f 66 20 66 69 6c | 65 20 6f 62 6a 65 63 74 |d.of fil|e object|
|00000c80| 73 2e 0d 5c 6f 62 69 6e | 64 65 78 7b 66 69 6c 65 |s..\obin|dex{file|
|00000c90| 7d 0d 5c 69 6e 64 65 78 | 7b 69 6e 70 75 74 21 72 |}.\index|{input!r|
|00000ca0| 61 77 7d 0d 5c 69 6e 64 | 65 78 7b 72 61 77 20 69 |aw}.\ind|ex{raw i|
|00000cb0| 6e 70 75 74 7d 0d 5c 62 | 69 66 75 6e 63 69 6e 64 |nput}.\b|ifuncind|
|00000cc0| 65 78 7b 72 61 77 5f 69 | 6e 64 65 78 7d 0d 5c 74 |ex{raw_i|ndex}.\t|
|00000cd0| 74 69 6e 64 65 78 7b 72 | 65 61 64 6c 69 6e 65 7d |tindex{r|eadline}|
|00000ce0| 0d | |. | |
+--------+-------------------------+-------------------------+--------+--------+